package com.example.demo.pojo.vo;

import com.example.demo.pojo.entity.QuestionLabel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 统计知识点下的数目与知识点相关信息的返回值
 * @author fjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LabelCountVO {
    private String labelName;
    private Integer parentId;
    private String nodeId;
    private Integer level;
    private Integer count;
    //初始化Label信息
    public void initLabel(QuestionLabel questionLabel){
        this.labelName = questionLabel.getName();
        this.parentId = questionLabel.getParentId();
        this.nodeId = questionLabel.getNodeId();
        this.level=questionLabel.getLevel();
    }
}
